/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef _INTERFACE_PCA9545_H_
#define _INTERFACE_PCA9545_H_

#include "internal/chip/chip_pca9545/pca9545.h"
#include <device_tree/interface/Chip/Pca9545.h>
#include <mc/engine.h>

namespace dev {

class Interface_Pca9545 : public mc::engine::interface<Interface_Pca9545, gen::Pca9545> {
public:
    Interface_Pca9545()  = default;
    ~Interface_Pca9545() = default;

    // 从variant中加载配置到基类属性
    void from_variant(mc::mutable_dict& csr_object);

    chip_pca9545* m_chip_pca9545 = nullptr;
};

} // namespace dev

#endif // _INTERFACE_PCA9545_H_